﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class SceneBattle : SceneBase
{
    public static SceneBattle Instance;
    protected override void Awake()
    {
        base.Awake();
        Instance = this;
    }

    protected override void OnEnable()
    {
        base.OnEnable();
    }

    protected override void OnDisable()
    {
        base.OnDisable();
    }

    protected override void Start()
    {
        base.Start();
        UIManager.Instance.ShowUI(UIName.UIBattle);
    }

    protected override void OnDestroy()
    {
        base.OnDestroy();
        Instance = null;
        UIManager.Instance.CloseUI(UIName.UIBattle);
    }

    public override void OnHandleData(object data)
    {
        BattleCtr.Instance.OnHandleData(data as DataBattleMgr);
    }
}
